package com.htudata.grid.dao;

import com.alibaba.fastjson.JSONArray;
import java.math.BigInteger;

import com.htudata.grid.mapper.GridDateMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

@Repository
public class GridDateDao {
  @Autowired
  private GridDateMapper gridDateMapper;
  
  public JSONArray getAllReach() {
    return this.gridDateMapper.getAllReach();
  }
  
  public JSONArray getEachReach() {
    return this.gridDateMapper.getEachReach();
  }
  
  public JSONArray getEachProportion() {
    return this.gridDateMapper.getEachProportion();
  }
  
  public JSONArray getRainFctImgByImg(String fct) {
    return this.gridDateMapper.getRainFctIMgByFct(fct);
  }
  
  public JSONArray getGridDetails(long dataTime) {
    return this.gridDateMapper.getGridDetails(dataTime);
  }
  
  public JSONArray getTimeFileList(BigInteger startTime, BigInteger endTime, String fct, int offset, int rows) {
    return this.gridDateMapper.getTimeFileList(startTime, endTime, fct, offset, rows);
  }
}
